from django.urls import re_path, path, include
from rest_framework import routers
from . import views

router = routers.DefaultRouter()
# router.register(r"register", views.AllinpayStaffRegisterViewSet, basename="10员工注册")
router.register(r"allstaff", views.AllinpayStaffListViewSet, basename="01员工列表")
router.register(r"interlist", views.AllinpayPlaceinterListViewSet, basename="12员工积分列表")
router.register(r"interlog", views.AllinpayPlaceinterLogViewSet, basename="13员工积分日志")

# router.register(r"interConvert", views.AllinpayInterConvertViewSet, basename="15员工积分兑换")
router.register(
    r"interConvert", views.AllinpayInterConvertV2ViewSet, basename="16员工积分兑换V2"
)
router.register(
    r"interDoing", views.AllinpayInterConvertVVViewSet, basename="17员工确认兑换单"
)
router.register(
    r"interAdds", views.AllinpayPlaceinterAddsViewSet, basename="18创建员工积分奖励"
)
router.register(
    r"interCheaked", views.AllinpayPlaceinterAddsCheakedViewSet, basename="19审核员工积分奖励"
)

router.register(r"TeamList", views.AllinpayStaffteamListViewSet, basename="20团队列表")
router.register(r"AddConf", views.GIncentivesConfViewSet, basename="30全民激励配置")
router.register(r"WindUp", views.GIncentivesListViewSet, basename="31当日激励成就榜单")

urlpatterns = [
    path("", include(router.urls)),
]
